class StockQuotation:
	def __init__(self,code):
		self.code=code
		self.name='no name'
		self.price_today_start=0.0
		self.price_lastday=0.0
		self.price_now=0.0
		self.price_highest=0.0
		self.price_lowest=0.0
		self.price_bid_buy=0.0
		self.price_bid_sale=0.0
		self.amount=0.0
		self.amount_money=0.0
		self.change=0.0
		self.change_percent=0.0
		self.date='1970-01-01'
		self.time='00:00:00'
		self.slot_buy=[]
		self.slot_sale=[]
		for i in range(0,5):
			self.slot_buy.append((0.0,0.0))
			self.slot_sale.append((0.0,0.0))

	
class DataSource:
    #def add_listener(self,func,user_data):
        
	def get_stock_quotation(self,stock_code_list,func=None,user_data=None):
		pass

	def get_img_to_file(self,stock_code,img_type,path,func=None,user_data=None):
		pass